﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BaHuan.Entities;
using BaHuan.DataLayer;
namespace BaHuan.Common
{
    public class Security
    {
        public static ResultObj AuthenticateListPhanQuyen(NhanVien nhanvien)
        {
            PhanQuyenDAO phanquyenDAO = new PhanQuyenDAO();
            ResultObj resultObj = new ResultObj();
            PhanQuyen phanquyen = new PhanQuyen();
            phanquyen.IdChucVu = nhanvien.IdChucVu;
            resultObj = phanquyenDAO.GetAllPhanQuyenByIDChucVu(phanquyen);
            return resultObj;
        }
    }
}
